﻿using UnityEngine;
using System.Collections;

public class ModuleAListener : MonoBehaviour {

    public class ModuleAArgs {
        //定义消息类型
        public const string LOAD = "LOAD";
        public const string DESTORY = "DESTORY";
    }
    void Awake() {
        //注册消息处理函数
        EventManager.GetInstance.AddListener<UIEventArgs>(OnReceive);
    }

    //定义消息处理函数，通过类型判断消息
    public void OnReceive(UIEventArgs e) {
        switch (e.Type) {
            case ModuleAArgs.LOAD:

                break;
            case ModuleAArgs.DESTORY:


                break;
        }
    }
}
